package com.project.wxServer.server.pay;

import com.project.common.core.domain.AjaxResult;
import com.project.wxServer.domain.pay.FaceToFace;
import com.project.wxServer.domain.pay.WxPayInfo;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.math.BigDecimal;

/**
 * @ClassName: IPayService
 * @Author: kang
 * @Date: 2021/7/1　10:47
 * @Description：支付接口
 */
public interface IPayService {

    /**
     * @return
     */
    public AjaxResult payPrepay(WxPayInfo wxPayInfo, HttpServletRequest request);

    /**
     * 微信订单回调接口
     */
    public void wxNotify(HttpServletRequest request, HttpServletResponse response);

    /**
     * 微信支付结果查询
     */
    public String getPayResult(WxPayInfo wxPayInfo);

    /**
     * 余额计算
     *
     * @param commodity_Type 订单类型
     * @param userId         用户编号

    public void balanceCompute(Integer commodity_Type, Long userId, BigDecimal paymentAmount);*/

    /**
     * 获取微信支付的二维码地址
     *
     * @return
     * @throws Exception
     * @author chenp
     */
    public AjaxResult getCodeUrl(FaceToFace faceToFace, HttpServletRequest request);
}
